home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / lpt2dsk.zip / LPT2DSK.DOC < prev    next >
Text File  |  1986-10-03  |  4KB  |  82 lines

  1.                  LPT2DSK - Capture printer output to disk file.
  2.                                 Version  1.0
  3.                                October 3, 1986
  4.                       (c) Copyright by George G. Bouche
  5.  
  6. This program works by intercepting the printer bios interupt (17h) and capturing
  7. the would be printed data in a buffer which is later written to a disk file.  By
  8. capturing at the bios level, all dos printing (file redirection, Ctl-PrtSc, LPT?,
  9. PRN, ...) and programs which call the bios directly (BASIC, Shft-PrtSc) are
  10. handled.  Capturing is for a specific printer (LPT1, LPT2 or LPT3) and output
  11. to the other two printers is passed thru to the original INT17 interupt address.
  12.  
  13. Usage:
  14.  
  15.     LPT2DSK [p] [nnK] [F=[d:][\path]filename[.ext]]
  16.  
  17.              p=1, 2 or 3   printer number for LPT1, LPT2, or LPT3
  18.                            Default=1  LPT1
  19.  
  20.              nn=1 to 64    the amount of memory (in multiples of 1024 bytes) to
  21.                            allocate to the printer buffer. The K is required.
  22.                            Default=64K
  23.  
  24.              filename      any valid dos filename (can be a device) with
  25.                            optional drive, path and/or extension. The F=
  26.                            is required.
  27.                            Default=LPT2DSK.p  where p=printer number as above
  28.                                    on the current drive, current directory.
  29.  
  30. Requirements:
  31.  - Dos 2.0 or later.
  32.  - The parameters can be in any sequence but must be delimited by space(s).
  33.  - Any or all parameters can be ommitted.
  34.  - The environment must have an entry for locating COMMAND.COM (COMSPEC= )
  35.    and COMMAND.COM must be available as it will be loaded.
  36.  - LPT2DSK.EXE needs 9120 bytes + XXXX bytes for the resident portion of
  37.    COMMAND.COM(for dos 3.1 this is 3200) + buffer size.
  38.  - Multiple printers can be captured - just run the program again for the
  39.    other printer.  Remember, last one started is the first one to exit from.
  40.  - Dos redirections of the printer (i.e. to COM?) are not detected and
  41.    no data will reach the buffer.
  42.  - The printer port hardware need not be present to capture data.  The printer
  43.    status of the captured printer is returned as ready/not busy unless the
  44.    buffer has filled.
  45.  
  46.  
  47.  
  48. Examples:
  49.  
  50.   LPT2DSK 2 32K F=CAPTURE.DAT
  51.                           capture LPT2 and reserve a 32k buffer. a secondary
  52.                           level of command.com is loaded. interupt 17h is
  53.                           replaced; no hardware or dos interupts are disturbed.
  54.  
  55.    ...                    run the programs that print
  56.                             and/or hit shift-print-screen
  57.                             and/or hit control-print-screen
  58.                           printing to LPT1 or LPT3 goes on un-affected
  59.                           if the buffer gets full, dos returns an
  60.                             "Not ready error writing device LPT2
  61.                              Abort, Retry, or Ignore"
  62.                             the only option is to abort.
  63.  
  64.   EXIT                    exit secondary command.com and end LPT2DSK
  65.                           the file CAPTURE.DAT is opened and data is written.
  66.                           if the file existed before, it is overwritten.
  67.                           if no data was printed, the file will not be opened.
  68.                           interupt 17h is restored to value before capture.
  69.                           all allocated memory is returned - nothing resident.
  70.  
  71.  
  72.   LPT2DSK F=LPT1 3
  73.                           capture LPT3 and reserve a 64k buffer.
  74.                           the buffer will be written to printer 1 when done.
  75.  
  76.  
  77.            Please direct any comments/suggestions/problems to:
  78.  
  79.                            George G. Bouche
  80.                            P.O.Box 65111
  81.                            Lubbock, TX  79464
  82.